﻿using System.Collections.Generic;
using MaxStoreShop.Server.Contracts;

namespace MaxStoreShop.Server.Services
{
    public class UserService : IUserService
    {
        public IEnumerable<User> GetUsers()
        {
            return new List<User>
            {
                new User {FirstName = "Maxim", LastName = "Davidov"},
                new User {FirstName = "Nikolo", LastName = "Salo"}
            };
        }

        public void AuthorizeUser(string userName, string password)
        {
//            Thread.CurrentPrincipal = new GenericPrincipal(new GenericIdentity("Maxim"),new []{"Adminisk"});
//            Console.WriteLine(Thread.CurrentPrincipal);
        }
    }
}